package com.lovo.csc.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.time.LocalDate;

/**
 *用户订单表
 */
@Getter
@Setter
@NoArgsConstructor
@TableName("user_order")
public class UserOrderBean {
    @TableId(value = "pk_userOrderId",type = IdType.AUTO)
    private long userOrderId;
    @TableField("uo_idNum")
    private String orderNum;
    @TableField("uo_date")
    private LocalDate date;
    @TableField("uo_goodsName")
    private String goodsName;
    @TableField("uo_goodsNum")
    private int goodsNum;
    @TableField("uo_goodsPrice")
    private float goodsPrice;
    @TableField("uo_buyPrice")
    private float buyPrice;
    @TableField("uo_userName")
    private String userName;
    @TableField("uo_userPhone")
    private String userPhone;
    @TableField("uo_userAddress")
    private String userAddress;
    @TableField("uo_specs")
    private String specs;
    @TableField("uo_type")
    private String type;
    @TableField("uo_totalPrice")
    private float totalPrice;
    @TableField("uo_payDate")
    private LocalDate payDate;
    @TableField("uo_status")
    @ApiModelProperty(" 0-未付款 1-已付款 2-已完成 3-正在退货 4-退货完成")
    private int status;
    @TableField("uo_payType")
    @ApiModelProperty("0--预存款 1--支付宝")
    private int payType;

    @TableField(exist = false)
    private RefundBean refundBean;
}
